package top.hzy520.personalblog.dao;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import top.hzy520.personalblog.po.Comment;

import java.util.List;

public interface CommentRepository  extends JpaRepository<Comment,Long> {

    List<Comment>  findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}
